package com.itheima.service;


import com.itheima.pojo.dto.orderDto.OrderAddDto;
import com.itheima.pojo.dto.orderDto.OrderUpdateDto;
import com.itheima.pojo.vo.orderVo.GetOrderVo;
import com.itheima.pojo.vo.orderVo.OrderByPageVo;

import java.text.ParseException;
import java.util.List;

/**
 * @author tcotk
 */
public interface OrderService {
    /**
     * 查询所有
     * @return  list
     * @throws ParseException ParseException
     */
    List<GetOrderVo>selectAll() throws ParseException;

    /**
     * 修改订单状态
     * @param order id
     * @return true
     */
    boolean update(OrderUpdateDto order);

    /**
     * 添加订单
     * @param order order
     * @return true
     */
    boolean add(OrderAddDto order );

    /**
     *
     * @param page page
     * @param pageSize pageSize
     * @param number number
     * @param endTime endTime
     * @param beginTime beginTime
     * @return list
     * @throws ParseException ParseException
     */
    List<OrderByPageVo> selectByPage(int page, int pageSize, String number, String endTime, String beginTime) throws ParseException;
    List<OrderByPageVo> selectByPage(int page, int pageSize);
}
